﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Main.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ThuongMaiDienTu.Default" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DataList ID="dtlst_product" runat="server" BorderStyle="Dotted" 
    BorderWidth="1px" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%" 
        Height="100%" CaptionAlign="Top" GridLines="Horizontal" 
    onitemcommand="dtlst_product_ItemCommand" 
        onitemdatabound="dtlst_product_ItemDataBound">
        <ItemStyle Width="30%" BorderWidth="1px" VerticalAlign="Top" 
            HorizontalAlign="Left"  />
        <ItemTemplate>
        <div style="width:100%;text-align:center">            
            <asp:Label ID="lb_name" style="padding-bottom:20px" runat="server" Text='<%# Eval("c.TenSanPham") %>' ></asp:Label><br />
            <asp:Image ID="img"  runat="server" Width="50%" style="float:inherit;"   ImageUrl='<%#: "~/images/products/" + Eval("c.UrlHinhAnh") +".jpg" %> ' /><br />
            <asp:Label ID="lb_price" runat="server" Text='<%# Eval("c.GiaSanPham") %>'></asp:Label><br />
            <asp:Label ID="lb_time" runat="server" Text="Label"></asp:Label><br />
            <asp:Button id="bnt_DauGia"
           Text="Đấu Giá"
           CommandName="Sort"
           CommandArgument='<%# Eval("c.IDSanPham") %>'
           OnCommand="CommandBtn_Click" 
           runat="server"/>
        </div> 
        </ItemTemplate>
    </asp:DataList>
</asp:Content>

